import { _decorator, Component, Node } from 'cc';
const { ccclass, property } = _decorator;

export const GAME_MODE = {
    NORMAL: "NORMAL",
    TIME: "TIME",
    CHANGE: "CHANGE"
}

@ccclass('GAMEDATA')
/**
 * 游戏数据相关
 * 
 * 对接广告
 * 加分提示
 * 
 */
export class GAMEDATA {

    //游戏模式
    static GAME_MODE: string = GAME_MODE.NORMAL;

    //游戏时间
    static GAME_TIME: number = 60;

    //游戏步数
    static GAME_STEP: number = 20;

    /**
     * 返回方块样式
     */
    static ReturnCubeNum(): number {
        return 1 + Math.floor(Math.random() * 4)
    }
}



